package com.axiang.module_sign.model;

import android.app.Application;

import com.axiang.lib_api.RetrofitManager;
import com.axiang.lib_api.http.RxAdapter;
import com.axiang.lib_api.response.BaseResponse;
import com.axiang.lib_common.mvvm.model.BaseModel;
import com.axiang.lib_common.network.ObserverUtil;

import java.util.concurrent.TimeUnit;

import io.reactivex.Observable;

public class LoginModel extends BaseModel {

    public LoginModel(Application application) {
        super(application);
    }

    public Observable<BaseResponse<Object>> login(){
        return Observable.just(new BaseResponse<>()).delay(3, TimeUnit.SECONDS).compose(ObserverUtil.<BaseResponse<Object>>schedulersTransformer(this));
    }
}
